import request from '@/utils/request'

// 查询伙食信息汇总列表
export function listFoodinfo(query) {
  return request({
    url: '/system/foodInfo/list',
    method: 'get',
    params: query
  })
}

// 查询伙食信息汇总详细
export function getFoodinfo(id) {
  return request({
    url: '/system/foodInfo/' + id,
    method: 'get'
  })
}

// 新增伙食信息汇总
export function addFoodinfo(data) {
  return request({
    url: '/system/foodInfo',
    method: 'post',
    data: data
  })
}

// 修改伙食信息汇总
export function updateFoodinfo(data) {
  return request({
    url: '/system/foodInfo',
    method: 'put',
    data: data
  })
}

// 删除伙食信息汇总
export function delFoodinfo(id) {
  return request({
    url: '/system/foodInfo/' + id,
    method: 'delete'
  })
}
